package com.martys.singleton05;


public class Application {

	//测试这个用同步代码块实现的懒汉式单例模式
	public static void main(String[] args) {
		Singleton05 instance1 = Singleton05.getInstance();
		System.out.println("instance1 hashcode： "+instance1.hashCode());
		Singleton05 instance2= Singleton05.getInstance();
		System.out.println("instance2 hashcode： "+instance2.hashCode());
	}

}
